.main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flex-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 1500px;
  padding: 2rem;
}

.contributor-container {
  margin-top: 20%;
  height: 100%;
}

.contributor-section {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 2rem;
  border-radius: 1rem;
  flex-grow: 1;
  margin: 0 1rem;
  margin-top: 12.5%;
}

.contributor-title {
  color: black;
  text-align: center;
  font-size: 3rem;
}

.contributor-subtitle {
  color: black;
  text-align: center;
  max-width: 600px;
  margin: 2rem auto;
  font-size: 17px;
}

.contributor-input-container {
  margin-top: -5px;
  display: flex;
  margin: 1rem auto;
  width: 100%;
  max-width: 900px;
}

.contributor-label {
  display: none;
}

.contributor-input {
  width: 100%;
  flex-grow: 1;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid black;
  border-radius: 0.5rem;
  padding: 0.5rem;
  color: black;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.contributor-input:focus {
  outline: none;
  border-color: #f5a623;
  background-color: rgba(255, 255, 255, 0.2);
}

.contributor-button {
  color: white;
  background-color: #f5a623;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-left: 1rem;
}

.contributor-button:hover {
  background-color: #e59a05;
}

.leaderboard-section {
  left: 70px;
}
.projects-section {
  right: 30px;
}

.leaderboard-section,
.projects-section {
  position: absolute;
  top: 10%;
  width: 30%;
  max-width: 300px;
  max-height: 300px;
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  background-color: #f9f9f9;
}

.leaderboard-title,
.projects-title {
  color: #343a40;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.leaderboard-list,
.projects-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  word-wrap: break-word;
}

.leaderboard-item,
.project-item {
  color: #495057;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.bold-amount {
  font-weight: bolder;
}

.project-item span {
  color: #6c757d;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.hidden_left,
.hidden_right {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  cursor: pointer;
  transition: transform 0.3s ease;
}
.hidden_left {
  left: 10px;
  margin-bottom: 10px;
}

.hidden_left svg {
  width: 28px;
  height: 30px;
}
.icon-white {
  color: #ced3d4;
}

.hidden_icon {
  height: 58px;
  cursor: pointer;
}

.hover-text1 {
  display: none;
  position: absolute;
  top: -10%;
  left: 100%;
  width: 100px;
  transform: translate(5%); /* 垂直水平居中 */
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}
.hover-text2 {
  display: none;
  position: absolute;
  top: 40%;
  left: 100%;
  width: 100px;
  transform: translateX(5%);
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.hidden_icon:hover .hover-text1 {
  display: block;
}
.hidden_icon:hover .hover-text2 {
  display: block;
}
